package cn.codesugar.broadcast

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import android.widget.Toast

class BootCompleteReceiver : BroadcastReceiver() {

    override fun onReceive(context: Context, intent: Intent) {
        if (intent.action == "android.intent.action.BOOT_COMPLETED") {
            Toast.makeText(context, "Boot Complete", Toast.LENGTH_SHORT).show()
            Log.e("20210611", "Boot Complete")
        }
    }
}